<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>单据打印</title>
</head>
<body>
<div th:if="${showPrint}">
    <div th:replace="web/pz/his/print/common/commonHeaderX::common_header"></div>
</div>
<div th:fragment="printDiv" id="printDiv" style="width: 297mm; margin: 1em auto; padding: 1em;">
    <link href="/res/jquery/myPrint_1.css" rel="stylesheet">
    <div class="print-area" style="">
        <div class="box" style="height: 100%;width: 100%;">
            <div class="box" style="width: 100px;">
                <div class="box-f1 box box-item-cr m-r" style="">
                    <div class="bingingTxt">装订线</div>
                </div>
                <div class="binding"></div>
            </div>
            <div class="box-f1" style="padding: 1em 2em;">
                <div class="box box-ver" style="">
                    <div class="applyCodeArea">
                        <div class="applyCode"><span th:text="${pzTicket.pz.pzMainVO.applyCode}"/></div>
                        <img class="qrImg" style="" alt="二维码图片" th:src="${pzTicket.qrCodeUrl}">
                    </div>
                    <div class="titleArea" style="">
                        <div class="title" style="">[[${pzTicket.schoolName}]]财务报销单据标签</div>
                    </div>
                    <div class="box box-item-cl" style="margin: .5em 0;">
                        <div class="box-f1 box">
                            <div>预算单位：</div>
                            <div class="box-f1"><span th:text="${pzTicket.pz.pzMainVO.applyDeptName}"/></div>
                        </div>
                        <div class="box-f1 box">
                            <div>经办人：</div>
                            <div class="box-f1"><span th:text="${pzTicket.pz.pzMainVO.agentUsers}"/></div>
                        </div>
                        <div class="box-f1 box">
                            <div>日期：</div>
                            <div class="box-f1">[[${#dates.format(pzTicket.pz.pzMainVO.applyDate, 'yyyy年MM月dd日')}]]</div>
                        </div>
                        <div class="box">
                            <div>附单据：</div>
                            <div class="box-f1"><span th:text="${pzTicket.pz.paperNum}"/></div>
                            <div>&nbsp;张</div>
                        </div>
                    </div>
                    <div class="box-f1">
                        <table class="table">
                            <tr>
                                <td style="width: 8em;">
                                    <div class="row1 justify">
                                        事由<span></span>
                                    </div>
                                </td>
                                <td colspan="3" style="padding: 0 .5em;"><span
                                        th:text="${pzTicket.pz.pzMainVO.title}"/></td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="row1 justify">报销金额<span></span></div>
                                </td>
                                <td colspan="3" style="padding: 0;">
                                    <div class="box box-item-cl">
                                        <div class="box box-ver box-item-cc"
                                             style="font-size: .8em;padding-left: .5em;">
                                            <div>人民币</div>
                                            <div>(大写)</div>
                                        </div>
                                        <div class="box-f1" style="padding-left: .5em;">
                                            <div><span th:text="${pzTicket.pz.moneyBig}"/></div>
                                        </div>
                                        <div>
                                            <table class="table2">
                                                <tr style="border-bottom: 1px solid #000;">
                                                    <td>千</td>
                                                    <td>百</td>
                                                    <td>十</td>
                                                    <td>万</td>
                                                    <td>千</td>
                                                    <td>百</td>
                                                    <td>十</td>
                                                    <td>元</td>
                                                    <td>角</td>
                                                    <td>分</td>
                                                </tr>
                                                <tr>
                                                    <td id="m10"></td>
                                                    <td id="m9"></td>
                                                    <td id="m8"></td>
                                                    <td id="m7"></td>
                                                    <td id="m6"></td>
                                                    <td id="m5"></td>
                                                    <td id="m4"></td>
                                                    <td id="m3"></td>
                                                    <td id="m2"></td>
                                                    <td id="m1"></td>
                                                </tr>
                                            </table>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="row1 justify">经费来源<span></span></div>
                                </td>
                                <td colspan="3">
                                    <div style="margin-left: .5em;"><span th:utext="${pzTicket.pz.moneyStr}"/>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="row2 box box-ver box-item-cc">
                                        <div class="justify" style="height: 1.5em;">部门领导<span></span></div>
                                        <div class="justify" style="height: 1.5em;">审批意见<span></span></div>
                                    </div>
                                </td>
                                <td id="print2_1_1imgDiv" style="width: 25em;">
                                    <span th:if="${pzTicket.auditMap['bmld']}" th:text="${pzTicket.auditMap.bmld}"/>&nbsp;
                                    <img class='img' style="position:absolute;z-index:-1;" th:if="${pzTicket.auditMap['bmldImg']}" th:src="@{${pzTicket.auditMap.bmldImg}}"/>
                                </td>
                                <td rowspan="2" style="width: 5em;">
                                    <div class="box box-item-cc">
                                        <div>财务<br/>支付</div>
                                    </div>
                                </td>
                                <td rowspan="2" style="height: 10em;">
                                    <div style="height: 100%;">
                                        <div class="box box-ver" style="height: 100%;">
                                            <div class="box-f1 box-item-cl box" style="padding: 0 .5em;">
                                                <div class="box-f1 box" style="">
                                                    <div class="box-f1">(大写)</div>
                                                </div>
                                            </div>
                                            <div class="box-f1 box-item-cl box"
                                                 style="border-top: 1px solid #000;border-bottom: 1px solid #000;padding: 0 .5em;">
                                                <div class="box-f1 box" style="">
                                                    <div class="box-f1">1. 转账（现金）支付</div>
                                                </div>
                                            </div>
                                            <div class="box-f1 box box-item-cl" style="padding: 0 .5em;">
                                                <div class="box-f1 box" style="">
                                                    <div class="box-f1">2. 清原借款</div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="row2 box box-ver box-item-cc">
                                        <div class="justify" style="height: 1.5em;">分管领导<span></span></div>
                                        <div class="justify" style="height: 1.5em;">审批意见<span></span></div>
                                    </div>
                                </td>
                                <td id="print2_1_2imgDiv">
                                    <span th:if="${pzTicket.auditMap['fgld']}" th:text="${pzTicket.auditMap.fgld}"/>&nbsp;
                                    <img class='img' style="position:absolute;z-index:-1;" th:if="${pzTicket.auditMap['fgldImg']}" th:src="@{${pzTicket.auditMap.fgldImg}}"/>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="row3 box box-ver box-item-cc">
                                        <div class="justify" style="height: 1.5em;">计划财务处<span></span></div>
                                        <div class="justify" style="height: 1.5em;">审批意见<span></span></div>
                                    </div>
                                </td>
                                <td id="print2_1_3imgDiv">
                                    <span th:if="${pzTicket.auditMap['cwcz']}" th:text="${pzTicket.auditMap.cwcz}"/>&nbsp;
                                    <img class='confirmImg' style="position:absolute;z-index:-1;"
                                         th:if="${pzTicket.auditMap['cwczConfirmImg']}"
                                         th:src="@{${pzTicket.auditMap.cwczConfirmImg}}"/>&nbsp;
                                    <img class='img' style="position:absolute;z-index:-1;"
                                         th:if="${pzTicket.auditMap['cwczImg']}"
                                         th:src="@{${pzTicket.auditMap.cwczImg}}"/>
                                </td>
                                <td rowspan="2">
                                    <div class="box box-item-cc">
                                        <div>说明</div>
                                    </div>
                                </td>
                                <td rowspan="2">
                                    <div class="desc" style="">
                                        <div>1. 经手人必须在发票上面逐张签字；</div>
                                        <div>2. 差旅费报销单统一使用“差旅费报销单”；</div>
                                        <div>3. 本单据标签必须加盖部门公章。</div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="row3 box box-ver box-item-cc">
                                        <div class="justify" style="height: 1.5em;">主管财务院长<span></span></div>
                                        <div class="justify" style="height: 1.5em;">审批意见<span></span></div>
                                    </div>
                                </td>
                                <td id="print2_1_4imgDiv">
                                    <span th:if="${pzTicket.auditMap['zgcwyz']}" th:text="${pzTicket.auditMap.zgcwyz}"/>&nbsp;
                                    <img class='confirmImg' style="position:absolute;z-index:-1;"
                                         th:if="${pzTicket.auditMap['zgcwyzConfirmImg']}"
                                         th:src="@{${pzTicket.auditMap.zgcwyzConfirmImg}}"/>&nbsp;
                                    <img class='img' style="position:absolute;z-index:-1;"
                                         th:if="${pzTicket.auditMap['zgcwyzImg']}"
                                         th:src="@{${pzTicket.auditMap.zgcwyzImg}}"/>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div class="box">
                        <div class="box-f1 box">
                            <div>打印日期：</div>
                            <div class="box-f1"><span
                                    th:text="${#dates.format(pzTicket.pz.printTime, 'yyyy-MM-dd HH:mm')}"/></div>
                        </div>
                        <div class="box-f1 box box-item-cc">
                            <div>第</div>
                            <div style="margin-left: .5em;"><span th:text="${pzTicket.pz.printNum}+1"/>
                            </div>
                            <div style="margin-left: .5em;"> 次打印</div>
                        </div>
                        <div class="box-f1 box box-item-cr">
                            <div>制单人：<span th:text="${pzTicket.pz.pzMainVO.applyUserName}"/></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<script type="text/javascript">
    var moneyReal = parseFloat('[[${pzTicket.pz.pzMainVO.money}]]').toFixed(2);
    var moneyRealShow = (moneyReal*100).toFixed(0);
    var moneyReallength = moneyRealShow.length;
    for(var key in moneyRealShow){
        document.getElementById('m'+(moneyReallength-key)).innerText=moneyRealShow[key];
    }
    document.getElementById('m'+(moneyReallength+1)).innerText="¥";

</script>
</div>

</body>
</html>